Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.ecm.user.center.profile.layouts--widgets

This contribution is part of XML component org.nuxeo.ecm.user.center.profile.layouts inside nuxeo-user-profile-7.10.jar /OSGI-INF/layouts-contrib.xml

Extension Point

Extension point widgets of component WebLayoutManager.

Contributed Items

  • <widget name="summary_user_profile" type="summary_user_profile"/>
  • <widget name="summary_user_preferences" type="summary_user_preferences"/>
  • <widget name="avatar" type="avatar">
          <labels>
            <label mode="any">label.userprofile.avatar</label>
          </labels>
          <translated>true</translated>
          <helpLabels>
            <label mode="edit">
              helplabel.userprofile.avatar
            </label>
          </helpLabels>
          <fields>
            <field/>
            <field>userprofile:avatar</field>
          </fields>
          <properties mode="any">
            <property name="file_property_name">userprofile:avatar</property>
          </properties>
        </widget>
  • <widget name="birthdate" type="datetime">
          <labels>
            <label mode="any">label.userprofile.birthdate</label>
          </labels>
          <translated>true</translated>
          <helpLabels>
            <label mode="edit">
              helplabel.userprofile.birthdate
            </label>
          </helpLabels>
          <fields>
            <field>userprofile:birthdate</field>
          </fields>
          <properties widgetMode="any">
            <property name="pattern">#{nxu:basicDateFormatter()}</property>
          </properties>
          <properties widgetMode="edit">
            <property name="format">#{nxu:basicDateFormatter()}</property>
          </properties>
        </widget>
  • <widget name="phonenumber" type="text">
          <labels>
            <label mode="any">label.userprofile.phonenumber</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>userprofile:phonenumber</field>
          </fields>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="gender" type="template">
          <labels>
            <label mode="any">label.userprofile.gender</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>userprofile:gender</field>
          </fields>
          <properties mode="any">
            <property name="template">/widgets/gender_widget_template.xhtml
            </property>
          </properties>
        </widget>
  • <widget name="locale" type="selectOneDirectory">
          <labels>
            <label mode="any">label.userpreferences.locale</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>userprofile:locale</field>
          </fields>
          <properties widgetMode="any">
            <property name="localize">false</property>
            <property name="directoryName">locale</property>
            <property name="displayIdAndLabel">false</property>
            <property name="required">false</property>
          </properties>
        </widget>
  • <widget name="timezone" type="template">
          <labels>
            <label mode="any">label.userpreferences.timezone</label>
          </labels>
          <translated>true</translated>
          <widgetModes>
            <mode value="view">view</mode>
            <mode value="any">hidden</mode>
          </widgetModes>
          <properties mode="any">
            <property name="template">/widgets/timezone_widget_template.xhtml
            </property>
          </properties>
        </widget>
  • <widget name="userProfile" type="layout">
          <properties widgetMode="any">
            <property name="name">userprofile</property>
          </properties>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="summary_user_profile" type="summary_user_profile"/>

    <widget name="summary_user_preferences" type="summary_user_preferences"/>

    <widget name="avatar" type="avatar">
      <labels>
        <label mode="any">label.userprofile.avatar</label>
      </labels>
      <translated>true</translated>
      <helpLabels>
        <label mode="edit">
          helplabel.userprofile.avatar
        </label>
      </helpLabels>
      <fields>
        <field/>
        <field>userprofile:avatar</field>
      </fields>
      <properties mode="any">
        <property name="file_property_name">userprofile:avatar</property>
      </properties>
    </widget>

    <widget name="birthdate" type="datetime">
      <labels>
        <label mode="any">label.userprofile.birthdate</label>
      </labels>
      <translated>true</translated>
      <helpLabels>
        <label mode="edit">
          helplabel.userprofile.birthdate
        </label>
      </helpLabels>
      <fields>
        <field>userprofile:birthdate</field>
      </fields>
      <properties widgetMode="any">
        <property name="pattern">#{nxu:basicDateFormatter()}</property>
      </properties>
      <properties widgetMode="edit">
        <property name="format">#{nxu:basicDateFormatter()}</property>
      </properties>
    </widget>

    <widget name="phonenumber" type="text">
      <labels>
        <label mode="any">label.userprofile.phonenumber</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>userprofile:phonenumber</field>
      </fields>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="gender" type="template">
      <labels>
        <label mode="any">label.userprofile.gender</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>userprofile:gender</field>
      </fields>
      <properties mode="any">
        <property name="template">/widgets/gender_widget_template.xhtml
        </property>
      </properties>
    </widget>

    <widget name="locale" type="selectOneDirectory">
      <labels>
        <label mode="any">label.userpreferences.locale</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>userprofile:locale</field>
      </fields>
      <properties widgetMode="any">
        <property name="localize">false</property>
        <property name="directoryName">locale</property>
        <property name="displayIdAndLabel">false</property>
        <property name="required">false</property>
      </properties>
    </widget>

    <widget name="timezone" type="template">
      <labels>
        <label mode="any">label.userpreferences.timezone</label>
      </labels>
      <translated>true</translated>
      <widgetModes>
        <mode value="view">view</mode>
        <mode value="any">hidden</mode>
      </widgetModes>
      <properties mode="any">
        <property name="template">/widgets/timezone_widget_template.xhtml
        </property>
      </properties>
    </widget>

    <widget name="userProfile" type="layout">
      <properties widgetMode="any">
        <property name="name">userprofile</property>
      </properties>
    </widget>

  </extension>